package com.xiaoq.user.endpoint;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.alibaba.dubbo.config.annotation.Reference;
import com.xiaoq.apis.sites.ISitesApi;
import com.xiaoq.coms.GenericDataResponse;
import com.xiaoq.users.redis.RedisTemplate4JedisCluster;
import com.xiaoq.users.service.TencentIMService;
import com.xiaoq.users.service.TencentRequestVo;
import com.xiaoq.users.service.TencentResponseVo;

@RestController
@RequestMapping(value = "/api/v1/user")
public class TestDubboEndpoint {
	@Autowired
	private TencentIMService tencentImService;
	
	@GetMapping(value = "/dubbo2.5.7", produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
	public ResponseEntity<?> getSiteInfo2Social(TencentRequestVo request) {
		TencentResponseVo tencentResponse = tencentImService.tencentAccount(request);
		return GenericDataResponse.okWithData(tencentResponse);
	}
}
